package cn.jd.org.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.jd.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author jd
 * @since 2022-10-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BasicDomain {

    private static final long serialVersionUID = 1L;

    @Excel(name="店铺名称", orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name="电话", orderNum = "2", width = 30, isImportField = "true_st")
    private String tel;
    @Excel(name="创建", orderNum = "3", width = 30, isImportField = "true_st", format = "yyyy-MM-dd  HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime = new Date();
    // 店铺状态：0：待审核、1：已审核、-1：驳回、2：待激活
    @Excel(name="状态", replace = {"待审核_0","已审核_1","驳回_-1","待激活_2"}, orderNum = "4", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name="地址", orderNum = "5", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name="店铺Logo", orderNum = "6", width = 30, isImportField = "true_st")
    private String logo;
    private Long adminId;
    // 员工对应的字段
    private Employee admin;
    // 返回日志集合
    private List<ShopAuditLog> auditLogs;




}
